package fleditor.common
{
	import flash.system.ApplicationDomain;

	public class CommonUtil
	{
		public function CommonUtil()
		{
		}
		
		public static function getDefinitionByName(link:String):*
		{
			if(ApplicationDomain.currentDomain.hasDefinition(link))
			{
				var classAsset:Class=ApplicationDomain.currentDomain.getDefinition(link) as Class;
				if(!classAsset) return null;
				return new classAsset();
			}
			else
			{
				return null;
			}
		}
	}
}